<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>查询学生信息</title>
		<script src="jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				$("#select").click(function() {
					var no = $("#no").val();
					var name = $("#name").val();
					$.post('searchStudent.php', {
						no: no,
						name: name
					}, function(data) {
						$('#show').html(data);
					});
				});
			});
		</script>
	</head>

	<body>
		<h1>查询学生信息</h1>
		<fieldset id="">
			<legend>输入学号或姓名</legend>
			<p>
				<label for="no">学号：</label>
				<input type="text" id="no" name="no" value="" />
			</p>
			<p>
				<label for="name">姓名：</label>
				<input type="text" id="name" name="name" value="" />
			</p>
			<input type="submit" id="select" value="查询" />
		</fieldset>
		<p id="show"></p>
	</body>

</html>